package org.example.exp2.exam6.deep;

import java.io.IOException;

public class Client {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        Address address = new Address("中国", "湖南", "长沙", "中南大学", "10舍604");
        Customer customer = new Customer("郑乾坤", true, 20, address);

        Customer clone = customer.deepClone();
        System.out.println(customer == clone);
        System.out.println(customer.getCustomerAddress() == clone.getCustomerAddress());
        System.out.println(customer.getName() == clone.getName());
    }
}